import React, { Component } from 'react'

export default class AComp extends Component {
  handleClick = () => {
    this.props.changeCount(1)
  }
  render() {
    return (
      <div>
        {/* #1 一点按钮，调用父亲的方法并传过去 1 */}
        <div>
          A<button onClick={this.handleClick}>+1</button>
        </div>
      </div>
    )
  }
}
